using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace WMVConvert.Tests.Metadata
{
	public static class Helper
	{
		public static string PrepareceDeploymentItem(string item,string testName)
		{
			FileInfo fiItem = new FileInfo(item);
			string newName = Path.GetFileNameWithoutExtension(fiItem.Name) + "." + testName + fiItem.Extension;
			if ( File.Exists(newName) )
			{
				File.Delete(newName);
			}
			File.Copy(item, newName);
			return newName;
		}
	}
}
